package com.example.springboottest.actuator;

import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
import org.springframework.stereotype.Component;

@Component
@Endpoint(id = "stuEndpoint", enableByDefault = true)
public class StuEndpoint {
    @ReadOperation
    public String stuEndpoint() {
        return "hello 这是个测试的自定义的actuator";
    }
}
